/**
 * 
 */
package com.edocbase.desktop.lightweight.widgets.richeditor;

import org.eclipse.swt.ole.win32.OleAutomation;
import org.eclipse.swt.ole.win32.Variant;


public class IHTMLSelectionObject extends BaseNode {

	public IHTMLSelectionObject(OleAutomation auto) {
		super(auto);
	}

	public TextRange createRange (){
		Variant var = invokeMethodWithReturn("createRange",null);
		OleAutomation oleAuto = var.getAutomation();
		var.dispose();
		autoDisposeList.add(oleAuto);
		return new TextRange(oleAuto);
	}
}
